Skip to content

Fix stale MountAndActivate landmark in perf docs#696

Merged
azchohfi merged 2 commits into
mainfrom
azchohfi-remove-embed-trace-logging
Jul 1, 2026
Merged

Fix stale MountAndActivate landmark in perf docs#696
azchohfi merged 2 commits into
mainfrom
azchohfi-remove-embed-trace-logging

Conversation

@azchohfi

@azchohfi azchohfi commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Updates two perf-tooling docs whose 0xC000027B troubleshooting landmark still referenced the [embed:trace] … MountAndActivate ok log line that has since been removed from the window-open/first-frame path.

  • .github/skills/perf-compare/SKILL.md
  • tests/stress_perf/ci/README.md

Both now describe the crash as happening "during first-frame window activation" instead of "right after MountAndActivate ok", so the guidance no longer points at a log line that no longer exists.

Note: This PR originally also removed the [embed:trace] logging itself from ReactorApp.cs / ReactorWindow.cs, but that identical cleanup landed independently on main. After rebasing, only the documentation landmark fixes remain.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes leftover unguarded [embed:trace] Console.Error.WriteLine(...) printf-style debug logging from the window-open / first-frame activation path (including embed setup), keeping behavior and ordering unchanged while eliminating unconditional stderr noise.

Changes:

  • Removed unconditional stderr trace lines from ReactorApp.OpenWindowCore and simplified no-op try/catch wrappers that only logged-then-rethrew.
  • Removed embed-only trace lines from ReactorWindow embed setup and simplified the same log-only exception wrapper.
  • Updated the stress-perf CI troubleshooting note to no longer rely on the removed trace landmark.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/Reactor/Hosting/ReactorApp.cs Drops unconditional stderr traces in OpenWindowCore; preserves cleanup-on-activation-failure behavior.
src/Reactor/Hosting/ReactorWindow.cs Removes embed setup stderr traces; keeps embed init ordering and watchdog start behavior intact.
tests/stress_perf/ci/README.md Rewords troubleshooting guidance to avoid referencing removed trace output.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Comment thread src/Reactor/Hosting/ReactorApp.cs
Comment thread src/Reactor/Hosting/ReactorWindow.cs Fixed
Comment thread src/Reactor/Hosting/ReactorWindow.cs Fixed
Comment thread src/Reactor/Hosting/ReactorWindow.cs Fixed
azchohfi and others added 2 commits July 1, 2026 12:58
…t-frame path

PR #543 (Spec 056 embedded preview Phase 1) left unguarded
Console.Error.WriteLine("[embed:trace] ...") printf-debugging in the window-open
path: four success-path writes fire on EVERY window open (even non-embed) plus
catch-block traces, and six embed-only writes in ReactorWindow setup.

Removed all of them while preserving behavior exactly: the MountAndActivate catch
keeps its real cleanup (UnregisterWindow + Dispose) before rethrow; the
ctor/configure and embed-setup try/catch blocks only logged-then-rethrew, so after
removing the logs they are no-ops and were simplified away (exceptions propagate
identically). No control-flow, ordering, or Register/Mount sequencing changes.

Consumer check: the [embed:trace] lines go to stderr only; the VS preview handshake
is CAPTURE_PORT/CAPTURE_TOKEN parsed from stdout (ReactorChildLauncher.cs,
extension.ts). stderr is purely diagnostic (16KB tail buffer + Output pane), so
nothing programmatic depends on these lines. Also updated a stale troubleshooting
landmark in tests/stress_perf/ci/README.md that referenced the removed
"MountAndActivate ok" trace.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…race

The pr-review skill flagged that .github/skills/perf-compare/SKILL.md still
referenced the removed "MountAndActivate ok" trace as a headless-crash landmark.
Reworded to "during first-frame window activation" to match the README change so
the skill no longer points readers at a stderr line that no longer prints.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@azchohfi azchohfi force-pushed the azchohfi-remove-embed-trace-logging branch from 0eeedc5 to 7a1dfe2 Compare July 1, 2026 19:58
@azchohfi azchohfi changed the title Remove leftover [embed:trace] debug logging from the window-open/first-frame path Fix stale MountAndActivate landmark in perf docs Jul 1, 2026
@azchohfi azchohfi requested a review from Copilot July 1, 2026 20:29
@azchohfi azchohfi marked this pull request as ready for review July 1, 2026 20:30
@azchohfi azchohfi requested a review from codemonkeychris as a code owner July 1, 2026 20:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@azchohfi azchohfi merged commit f6be466 into main Jul 1, 2026
21 checks passed
@azchohfi azchohfi deleted the azchohfi-remove-embed-trace-logging branch July 1, 2026 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants